package io.renren.sf.service.impl;

import io.renren.sf.vo.CityVo;
import io.renren.sf.vo.DistrictVo;
import io.renren.sf.vo.ProvinceVo;
import org.springframework.stereotype.Service;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import io.renren.sf.dao.CityDao;
import io.renren.sf.entity.CityEntity;
import io.renren.sf.service.CityService;


@Service("cityService")
public class CityServiceImpl extends ServiceImpl<CityDao, CityEntity> implements CityService {

    @Override
    public List<Map<String, Object>> getUserNum() {
        return baseMapper.getUserNum();
    }

    @Override
    public List<Map<String, Object>> getUserLoginNum() {
        return baseMapper.getUserLoginNum();
    }

    @Override
    public List<Map<String, Object>> getUserLoginTime() {
        return baseMapper.getUserLoginTime();
    }

    @Override
    public List<Map<String, Object>> getUserNumByProvinceId(Long cid) {
        return baseMapper.getUserNumByProvinceId(cid);
    }

    @Override
    public List<Map<String, Object>> getUserNumByCityId(Long cid) {
        return baseMapper.getUserNumByCityId(cid);
    }

    @Override
    public List<Map<String, Object>> getUserNumByRegionId(Long cid) {
        return baseMapper.getUserNumByRegionId(cid);
    }

    @Override
    public List<Map<String, Object>> getUserLoginNumByProvinceId(Long cid) {
        return baseMapper.getUserLoginNumByProvinceId(cid);
    }

    @Override
    public List<Map<String, Object>> getUserLoginNumByCityId(Long cid) {
        return baseMapper.getUserLoginNumByCityId(cid);
    }

    @Override
    public List<Map<String, Object>> getUserLoginNumByRegionId(Long cid) {
        return baseMapper.getUserLoginNumByRegionId(cid);
    }

    @Override
    public List<Map<String, Object>> getUserLoginTimeByProvinceId(Long cid) {
        return baseMapper.getUserLoginTimeByProvinceId(cid);
    }

    @Override
    public List<Map<String, Object>> getUserLoginTimeByCityId(Long cid) {
        return baseMapper.getUserLoginTimeByCityId(cid);
    }

    @Override
    public List<Map<String, Object>> getUserLoginTimeByRegionId(Long cid) {
        return baseMapper.getUserLoginTimeByRegionId(cid);
    }

    @Override
    public List<ProvinceVo> getSsq(Integer cid) {
        return baseMapper.getSsq(cid);
    }

    @Override
    public List<CityVo> getSq(Integer cid) {
        return baseMapper.getSq(cid);
    }

    @Override
    public List<DistrictVo> getQ(Integer cid) {
        return baseMapper.getQ(cid);
    }

    @Override
    public List<Integer> getCids(Integer cid) {
        LinkedList<Integer> cids = new LinkedList<>();
        cids.add(cid);

        return cids;
    }

    @Override
    public List<ProvinceVo> getSsqAll() {
        return baseMapper.getSsqAll();
    }
}